#include "clock.h"
#include "delay.h"
#include "beep.h"
#include "button.h"

int main()
{
    Clock_Enable();
    Beep_Init();
    Button_Init();
    while(1)
    {
        // 按键按下
        if(Get_ButtonValue()==0)
        {
            Beep_ON();
        }
        //按键松开 
        else 
        {
            Beep_OFF();
        }
        Delay(20);
    }
}




